#ifndef _CAPP_H_
    #define _CAPP_H_
 
#include <SDL.h>
#include "Define.h"
 
#include "CEvent.h"
#include "CSurface.h"
#include "CAnimation.h"
#include "CEntity.h"
#include "CArea.h"
#include "CCamera.h"
#include "CPlayer.h"
#include "SDL_image.h"
#include "CCreator.h"
 
class CApp : public CEvent {
    private:
        bool            Running;
 
        SDL_Surface*    Surf_Display;
 
        SDL_Surface*    Surf_Test;
 
    public:
        CApp();
 
        int OnExecute();
 
    public:
        bool OnInit();
 
        void OnEvent(SDL_Event* Event);

		void OnExit();
 
        void OnLoop();
 
        void OnRender();
 
        void OnCleanup();

		void OnKeyDown(SDLKey sym, SDLMod mod, Uint16 unicode);

		void OnKeyUp(SDLKey sym, SDLMod mod, Uint16 unicode);

	public:
		CAnimation      Anim_Yoshi;

	private:

		CPlayer    Player;
};
 
#endif